﻿using System;
using System.Linq;
using System.Text;

using SqlSugar;
namespace SimpleORM.Model.DataBaseModel.SYSModelmain
{
    ///<summary>
    ///字典表
    ///</summary>
    [Tenant("0")]
    public partial class SysDictionary
    {
           public SysDictionary(){

            this.Protected =Convert.ToInt32("1");
            this.ParentId =Convert.ToInt64("0");
            this.CreateTime =DateTime.Now;

           }
           /// <summary>
           /// Desc:用户代码ID
           /// Default:
           /// Nullable:False
           /// </summary>
           [Newtonsoft.Json.JsonConverter(typeof(ValueToStringConverter))]           
           [SugarColumn(IsPrimaryKey=true)]
           public long Id {get;set;}

           /// <summary>
           /// Desc:编码
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Code {get;set;}

           /// <summary>
           /// Desc:名称
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Name {get;set;}

           /// <summary>
           /// Desc:描述
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Description {get;set;}

           /// <summary>
           /// Desc:是否被保护
           /// Default:1
           /// Nullable:True
           /// </summary>           
           public int? Protected {get;set;}

           /// <summary>
           /// Desc:父级ID
           /// Default:0
           /// Nullable:True
           /// </summary>
           [Newtonsoft.Json.JsonConverter(typeof(ValueToStringConverter))]           
           public long? ParentId {get;set;}

           /// <summary>
           /// Desc:字典类型ID，为树时不能为空
           /// Default:
           /// Nullable:True
           /// </summary>
           [Newtonsoft.Json.JsonConverter(typeof(ValueToStringConverter))]           
           public long? TypeId {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:DateTime.Now
           /// Nullable:True
           /// </summary>           
           public DateTime? CreateTime {get;set;}

    }
}
